Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions for Editing Movies / Low-Level Movie-Editing Functions


DeleteMovieSegment

The DeleteMovieSegment function removes a specified segment from a movie. You identify the segment to remove by specifying its starting time and duration.

pascal OSErr DeleteMovieSegment (Movie theMovie, TimeValue in,
                                 TimeValue duration);
theMovie
Specifies the movie for this operation. Your application obtains this movie identifier from such functions as NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
in
Contains a time value specifying the starting point of the segment
to be deleted.
duration
Contains a time value that specifies the duration of the segment
to be deleted.
ERROR CODES
invalidMovie-2010This movie is corrupted or invalid
invalidDuration-2014This duration value is invalid
invalidTime-2015This time value is invalid

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996